const Controller = require('egg').Controller
const jsonfile = require('jsonfile')

class FlutterController extends Controller {
  async meal() {
    const data = jsonfile.readFileSync('app/public/meal.json')
    this.ctx.body = data
    this.ctx.set('Access-Control-Allow-Origin', '*')
  }
}

module.exports = FlutterController
